package com.pactera.mapper;

import com.pactera.model.UserRole;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface UserRoleMapper {
	
    int deleteByPrimaryKey(String id);

    int insert(UserRole record);

    UserRole selectByPrimaryKey(String id);

    List<UserRole> selectAll();

    int updateByPrimaryKey(UserRole record);
    
    int insert(@Param(value="userId") String userId, @Param(value="roleIds") String[] roleIds);
    
    int insertByBatch(@Param(value = "userRoleList") List<UserRole> userRoleList);
}